#{extends 'main.html' /} #{set title:'employee' /}

<div class="fields">

#{form @employees.save(), id:'createForm'}

<table>

	<tr>
		<td class="field"><input type="hidden" name="employee.id"
			value="${employee?.id}" /></td>
		<span class="error">${errors.forKey('employee.id')}</span>
	</tr>
	
	<tr>
		<td class="label">Salutation:</td>
		<td class="field"><input type="text" name="employee.salutation"
			value="${employee?.salutation}" /></td>
		<td><span class="error">${errors.forKey('employee.salutation')}</span></td>
	</tr>

	<tr>
		<td class="label">First Name:</td>
		<td class="field"><input type="text" name="employee.firstName"
			value="${employee?.firstName}" /></td>
		<td><span class="error">${errors.forKey('employee.firstName')}</span></td>
	</tr>
	
	<tr>
		<td class="label">Last Name:</td>
		<td class="field"><input type="text" name="employee.lastName"
			value="${employee?.lastName}" /></td>
		<td><span class="error">${errors.forKey('employee.lastName')}</span></td>
	</tr>
	
	<tr>
		<td class="label">Address:</td>
		<td class="field"><input type="text" name="employee.address"
			value="${employee?.address}" /></td>
		<td><span class="error">${errors.forKey('employee.address')}</span></td>
	</tr>
	
</table>
</div>
<input type="submit" name="submit" value="Save" />
<a href="@{Employees.index}">Cancel</a>
#{/form}